package com.pe.pgn.clubpgn.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pe.pgn.clubpgn.dao.TestDao;
import com.pe.pgn.clubpgn.domain.Detalle;
import com.pe.pgn.clubpgn.domain.Maestro;
import com.pe.pgn.clubpgn.service.TestService;

@Service
public class TestServiceImpl extends GenericManagerImpl<Maestro, Long> implements
		TestService {

	@Autowired
	private TestDao testDao;
	
	public void guardarMaestro(Maestro maestro, List<Detalle> detalles) {
		
		testDao.guardarMaestro(maestro, detalles);
	}
	
	public Maestro obtenerMaestro(Long id) {
		
		return testDao.obtenerMaestro(id);
	}
	
	public List<Maestro> obtenerMaestros() {
		
		return testDao.obtenerMaestros();
	}

}
